package com.punai.datapush.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.punai.common.annotation.Excel;
import com.punai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 期次维护对象 eco_feeitem_period
 *
 * @author ruoyi
 * @date 2023-04-19
 */

@TableName("eco_feeitem_period")
public class EcoFeeitemPeriod extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * $column.columnComment
     */
    @Excel(name = "${期次名称}", readConverterExp = "$column.readConverterExp()")
    private String name;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date start;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date end;

    /**
     * $column.columnComment
     */
    @Excel(name = "版本控制", readConverterExp = "$column.readConverterExp()")
    private Long versionControl;

    private String evaluationIds;

    public String getEvaluationIds() {
        return evaluationIds;
    }

    public void setEvaluationIds(String evaluationIds) {
        this.evaluationIds = evaluationIds;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setStart(Date start) {
        this.start = start;
    }

    public Date getStart() {
        return start;
    }

    public void setEnd(Date end) {
        this.end = end;
    }

    public Date getEnd() {
        return end;
    }

    public void setVersionControl(Long versionControl) {
        this.versionControl = versionControl;
    }

    public Long getVersionControl() {
        return versionControl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("start", getStart())
                .append("end", getEnd())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("versionControl", getVersionControl())
                .toString();
    }
}
